/*** 
 * @Author: Yanan Chen
 * @Date: 2021-11-02 13:39:49
 * @LastEditTime: 2021-12-06 13:47:23
 * @LastEditors: Yanan Chen
 * @Description: 
 * @FilePath: \fw\esp32\Src\Hal\hal_i2c.h
 * @
 */
#ifndef PRJ_I2C_H
#define PRJ_I2C_H


#ifdef __cplusplus
extern "C" {
#endif

#include "prj_cfg.h"


extern int i2c_init();
extern int i2c_write_mem(char addr,void *mem,int mem_size,void *data,int data_size);
extern int i2c_read_mem(char addr,void *mem,int mem_size,void *data,int data_size);
extern int i2c_write(char addr,void *data,int data_size);
extern int i2c_read(char addr,void *data,int data_size);


#ifdef __cplusplus
}
#endif
#endif